package com.dao.imp;

import com.dao.AddGoodTypeDao;
import com.util.DBConn;

/**
 * @author Mathison
 * @Title: AddParentType
 * @Package: com.dao.imp
 * @Description: TODO
 * @date 2021/11/22 22:16
 **/
public class AddParentType implements AddGoodTypeDao {
    @Override
    public boolean addGoodType(String sql) {
        boolean result = false;
        try {
            DBConn.init();
            if(DBConn.addUpdDel(sql)!=0){
                result=true;
            }
//            DBConn.closeConn();
        } catch (Exception e) {
            //
        }
        return result;
    }
}
